<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 选择器{属性1;属性2;属性3;属性4;..........} -->


         <!-- 选择器：标签选择器  -->
    <style>
        .a{
            width: 300px;
            height: 300px;
            border: 3px solid gray;
        }
        
        .b{
            width: 300px;
            height: 300px;
            background-color: greenyellow;
        }

    </style>
</head>
<body>
    <div class="a">
        <div class="b">

        </div>
    </div>
    
</body>
</html>